package com.xvxingan.mvc.system;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.json.MappingJackson2JsonView;

import com.xvxingan.base.controller.BaseController;
@Controller
@RequestMapping("/test")
public class TestNginxController extends BaseController {
	@RequestMapping("/test1")
	public ModelAndView test1(){
		return new ModelAndView(new MappingJackson2JsonView(),this.getSuccessResult("test1"));
	}
	@RequestMapping("/test2")
	public ModelAndView test2(){
		return new ModelAndView(new MappingJackson2JsonView(),this.getSuccessResult("test2"));
	}
}
